package com.chengyu.stock.mapper;

import com.chengyu.stock.pojo.domain.InnerMarketDomain;
import com.chengyu.stock.pojo.entity.StockMarketIndexInfo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author CY
* @description 针对表【stock_market_index_info(国内大盘数据详情表)】的数据库操作Mapper
* @createDate 2022-12-13 21:42:27
* @Entity com.chengyu.stock.pojo.entity.StockMarketIndexInfo
*/
public interface StockMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockMarketIndexInfo record);

    int insertSelective(StockMarketIndexInfo record);

    StockMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockMarketIndexInfo record);

    int updateByPrimaryKey(StockMarketIndexInfo record);

    List<InnerMarketDomain> getInnerMarketInfos(@Param("curDate") Date curDate, @Param("innerCodes") List<String> innerCodes);

    List<Map> getStockMarketTradeAmount(@Param("innerCodes") List<String> innerCodes, @Param("curDate") Date curDate, @Param("openDate") Date openDate);

    int insertBatch(@Param("list") ArrayList<StockMarketIndexInfo> list);
}
